import { JSONFilePreset } from "lowdb/node";

interface IUser {
    id: number;
    name: string;
    content: string;
}

const defaultData: { users: IUser[] } = { users: [] };
const db = await JSONFilePreset("db.json", defaultData);

export default db;